package com.ambulance.project.biz.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 外援表
 * </p>
 *
 * @author zr
 * @since 2020-04-23
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("biz_hospital")
@ApiModel(value="Hospital对象", description="外援表")
public class Hospital extends Model<Hospital> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "医院标识")
    @TableId(value = "hospitalID", type = IdType.AUTO)
    private Integer hospitalID;

    @ApiModelProperty(value = "医院名称")
    @TableField("hospital_name")
    private String hospitalName;

    @ApiModelProperty(value = "科室")
    @TableField("depart")
    private String depart;

    @ApiModelProperty(value = "会诊账号")
    @TableField("treat_account")
    private String treatAccount;

    @ApiModelProperty(value = "联系人")
    @TableField("relation_name")
    private String relationName;

    @ApiModelProperty(value = "联系电话")
    @TableField("relation_phone")
    private String relationPhone;

    @ApiModelProperty(value = "医院编号")
    @TableField("uid")
    private Integer uid;

    @ApiModelProperty(value = "类型:1=医院,2=科室")
    @TableField("type")
    private Integer type;

    @TableField("passwd")
    private String passwd;

    @Override
    protected Serializable pkVal() {
        return this.hospitalID;
    }

}
